package com.example.wastes.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.wastes.common.pojo.Admin;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {
    Admin tologin(String username);

    int saveAdmin(@Param("username") String username,@Param("password") String password);
//    @Select("select * from tb_admin where username=#{username}")
//    Admin selectAdmin(@Param("username") String username);

    List<Admin> findAdminName(String username);
}
